package com.yuba.front.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.yuba.common.excel.annotation.ExcelDictFormat;
import com.yuba.common.excel.convert.ExcelDictConvert;
import com.yuba.front.domain.FishSite;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 钓场视图对象 fish_site
 *
 * @author modakai
 * @date 2024-12-11
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = FishSite.class)
public class FishSiteVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long fishSiteId;

    /**
     * 钓场名称
     */
    @ExcelProperty(value = "钓场名称")
    private String name;

    /**
     * 地址
     */
    @ExcelProperty(value = "地址")
    private String address;

    /**
     * 省份
     */
    @ExcelProperty(value = "省份")
    private String province;

    /**
     * 城市
     */
    @ExcelProperty(value = "城市")
    private String city;

    /**
     * 经度
     */
    @ExcelProperty(value = "经度")
    private BigDecimal latitude;

    /**
     * 纬度
     */
    @ExcelProperty(value = "纬度")
    private BigDecimal longitude;

    /**
     * 收费类型
     */
    @ExcelProperty(value = "收费类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_yes_no")
    private String feeType;

    /**
     * 收费金额
     */
    @ExcelProperty(value = "收费金额")
    private Long amount;

    /**
     * 描述
     */
    @ExcelProperty(value = "描述")
    private String description;

    /**
     * 图片url
     */
    @ExcelProperty(value = "图片url")
//    @Translation(type = TransConstant.OSS_ID_TO_URL)
    private String imageUrl;

    /**
     * 是否公开; Y 公开，N 不公开
     */
    @ExcelProperty(value = "是否公开; Y 公开，N 不公开")
    private String publicFlag;

    /**
     * 用户id
     */
    @ExcelProperty(value = "用户id")
    private Long userId;

    private BigDecimal avgRating;
}
